package org.jeecg.modules.relation.relbuildingclassroom.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: rel_building_classroom
 * @author: baochangrong
 * @Date:   2022-02-11
 * @Version: V1.0
 */
@Data
@TableName("rel_building_classroom")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rel_building_classroom对象", description="rel_building_classroom")
public class RelBuildingClassroomVo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**建筑编码*/
	@Excel(name = "建筑ID", width = 15)
    @ApiModelProperty(value = "建筑ID")
    private String buildingId;
	/**教室编码*/
	@Excel(name = "教室ID", width = 15)
    @ApiModelProperty(value = "教室ID")
    private String classroomId;
	/**关系有效性*/
	@Excel(name = "关系有效性", width = 15)
    @ApiModelProperty(value = "关系有效性")
	@Dict(dicCode = "rel_status")
    private Integer buildingClassroomStatus;
	/**学校编码（租户ID）*/

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

	/** 建筑名称字段*/
	private String buildingName;
	/** 教师名称字段*/
	private String classroomName;
}
